Sweat is produced in groups of cells called glands, quite deep within the skin, and it reaches the surface through narrow tubes ending in tiny openings on the skin surface called sweat pores.